﻿@if (Request.IsAuthenticated)
{
    <div class="topNavText ">Hello,</div>
    using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
    {
    @Html.AntiForgeryToken()
      
    <ul id="navTop" class="sf-menu left-align">
        <li>@Html.ActionLink(User.Identity.Name + "!", "Index", "Profile")</li>
        <li>@Html.ActionLink("Profile", "Index", "Profile")</li>
        <li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
    </ul>     
    }
}
else
{
    <ul id="navTop" class="sf-menu">
        <li><a href="@Url.Action("Index", "Home")"><span>Home</span></a></li>
        <li><a href="@Url.Action("Login", "Account")"><span>Login</span></a></li>
        <li><a href="@Url.Action("Index", "Register")"><span>Join</span></a></li>
        <li><a href="features-toggle.html"><span>Help</span></a></li>
        <li><a href="features-infobox.html"><span>Contact</span></a></li>
    </ul>
}
